#! /bin/bash

PROJECT_DIR=$(cd `dirname $0`; pwd)
BUILD_DIR=${PROJECT_DIR}/build

cd ${PROJECT_DIR}

if [ -d build ]; then
    echo "build dir exist"
else
    mkdir -p build
fi

cd build
cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=1
make
